package com.tb.education.handler;

import com.tb.education.common.intf.AbsBaseHandler;
import com.tb.education.common.packets.DevicePacket;
import com.tb.education.common.packets.Head;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.core.ChannelContext;

/**
 * @author wangze
 * @date 2020/07/13
 **/
public class HeartBeatHandler extends AbsBaseHandler {
    private static Logger log = LoggerFactory.getLogger(HeartBeatHandler.class);

    @Override
    public Object handler(DevicePacket packet, Head head, String requestBody, ChannelContext channelContext) throws Exception {
        log.info("收到心跳包,当前设备电量为:" + requestBody);
        return null;
    }
}
